#pragma once
namespace bit
{
	template<class T, class container = std::deque<T>>
	class queue
	{
	public:
		void pop()
		{
			a.pop_front();
		}
		void push(const T& v)
		{
			a.push_back(v);
		}
		T& front()
		{
			return a.front();
		}
		T& back()
		{
			return a.back();
		}
		size_t size()
		{
			return a.size();
		}
		bool empty()
		{
			return a.empty();
		}
	private:
		container a;
	};
	void test_queue()
	{
		queue<int, std::list<int>> q;

		//queue<int, vector<int>> q;
		q.push(1);
		q.push(2);
		q.push(3);
		q.push(4);

		while (!q.empty())
		{
			cout << q.front() << " ";
			q.pop();
		}
		cout << endl;
	}
}